package com.mall.app.dao;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mall.app.bean.TbOrder;

/**
 * <p>
 * 订单表 Mapper 接口
 * </p>
 *
 * @author LeeSin
 * @since 2020-07-10
 */
@Mapper
@Repository
public interface TbOrderMapper extends BaseMapper<TbOrder> {
	List<TbOrder> listPage(Map<String, Object> map);

	int getCount(Map<String, Object> map);

	int deleteOrder(List<Integer> oids);
	
	int updateOrder(TbOrder order);
	
	int insertOrder(TbOrder order) throws SQLException;

	int updateOrderLogistic(TbOrder order);

	int updateOrderStat(TbOrder order);
}
